package com.quan.TemplateEditor.entity;

import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author southgis
 */
@Entity
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Getter
@Setter
@Table(name = AttributeDef.TABLE_NAME)
public class AttributeDef {
    public static final String TABLE_NAME = "SYS_ATTRIBUTEDEF";

    @Id
    @Column(name = "tablename")
    private String table_name;

 //
    @Column(name = "fieldname")
    private String field_name;

    @Column(name = "fieldtype")
    private String field_type;

    @Column(name = "fieldlength")
    private String field_length;

    @Column(name = "fielddecimal")
    private String field_decimal;

    @Column(name = "fieldtext")
    private String field_text;

    @Column(name = "dictionary")
    private String dictionary;

    @Column(name = "cache")
    private String cache;

    @Column(name = "notnull")
    private String not_null;

    @Column(name = "defaultvalue")
    private String default_value;

}
